﻿using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace Entity
{
    /// <summary>
    /// 用户信息
    /// </summary>
    [Table("AA001")]
    public class User:Base
    {

        [Column("A002")]
        [StringLength(50)]
        [Required]
        /// <summary>
        /// 昵称
        /// </summary>
        public  String? Name { get; set; }
        [Column("A003")]
        /// <summary>
        /// 年龄
        /// </summary>
        public int Age { get; set; }
        [Column("A004")]
        /// <summary>
        /// 生日
        /// </summary>
        public DateTime Birthday { get; set; }
        [Column("A005")]
        [Required]
        /// <summary>
        /// 手机号
        /// </summary>
        public String? CellPhone { get; set; }
        [Column("A006")]
        /// <summary>
        /// 邮箱
        /// </summary>
        public String? Email { get; set; }
        [Column("A007")]
        /// <summary>
        /// 性别
        /// </summary>
        public bool Sex { get; set; }
        [Column("A008")]
        /// <summary>
        /// 居住城市
        /// </summary>
        
        public DateTime CreatTime { get; set; }

    }
}
